package com.bagus.mediapipefacedetection.jni;

import android.graphics.Bitmap;

import com.google.mediapipe.formats.proto.LandmarkProto;

import java.util.List;

/**
 * @Description TODO
 * @Author yeqing
 * @Date 05-12-2023 周五 15:38
 */
public class FaceDetectJni {

//    public native long nativeInit();
//
//    public native boolean nativeLoadModels(long handle, byte[] trackModel, byte[] mouthModel, byte[] eyeModel, byte[] poseModel, byte[] blurModel);
//
//    public native void nativeRelease(long handle);
//
//    public native void nativeStartDetect(long handle);
//
//    public native void nativeStopDetect(long handle);
//
//    public native void nativeReset(long handle);
//
//    public native int nativeDetect(long handle, int imageMode, byte[] imageData, int width, int height, int angle);

//    public native float[] getFaceQualityInfo(long handle);

//    public native int nativeGetDetectStatus(long handle);
//
//    public native void nativeSetConfig(long handle,float face_max_offset_scale,float face_eye_occlusion,
//                                             float face_mouth_occlusion,float face_yaw,float face_pitch,float face_max_brightness,
//                                             float face_min_brightness,float face_min_size_ratio,float face_max_size_ratio,float face_motion_blur,
//                                             float face_gaussian_blur,float face_center_rectX,float face_center_rectY,int need_holding);

    public native double[] detectFinish(double[] pointsArray);

    public native String startDetectFace(double[] pointsArray);

    public native float[] nativeStartDetect(double[] pointsArray, int width, int height);

    public native float[] nativeDetect(Bitmap source1, double[] pointsArray, int width, int height);
}
